package com.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user_role")
public class UserRole {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 用户的id
     */
    @TableField
    private Long userId;
    /**
     * 角色的id
     */
    @TableField
    private Long roleId;
    /**
     * 创建时间
     */
    @TableField
    private LocalDateTime createDatetime;
    /**
     * 更新时间
     */
    @TableField
    private LocalDateTime updateDateTime;
}
